package org.janon.httpproxy;

import java.io.OutputStream;

public class RequestLogStream
{
	private OutputStream outputStream;
	private OutputStream inputStream;
	
	public RequestLogStream(OutputStream outputStream, OutputStream inputStream){
		setInputStream(inputStream);
		setOutputStream(outputStream);
	}

	public OutputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(OutputStream inputStream) {
		this.inputStream = inputStream;
	}

	public OutputStream getOutputStream() {
		return outputStream;
	}

	public void setOutputStream(OutputStream outputStream) {
		this.outputStream = outputStream;
	}
	
	public void close(){
		try
		{
			outputStream.close();
		}
		catch (Exception e)
		{
		}
		try
		{
			inputStream.close();
		}
		catch (Exception e)
		{
		}
	}
}
